package com.skyrin.ssm.dao;

import com.skyrin.ssm.model.DeveloperModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author skyrin
 * @create 2018-06-29 14:52
 */
public interface DeveloperDAO {
    List<DeveloperModel> getAllDevelopers();
    DeveloperModel getDeveloper(String developerId);
    boolean addDeveloper(DeveloperModel developerModel);
    //如果想传⼊多个参数，则需要在接⼝的参数上添加 @Param 注解
    boolean updateDeveloper(@Param("id") String id, @Param("name") String name);
    boolean deleteDeveloper(String id);
}
